package com.andy.springboot.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.andy.springboot.mapper.UserInfoMapper;
import com.andy.springboot.model.UserInfo;

@Service
public class UserService {

	@Autowired
	private UserInfoMapper userInfoMapper;

	public UserInfo getUserInfo(long userId) {
		/*
		 * 此处调用的并非UserInfoMapper中的方法，而是父类中的方法
		 */
		return userInfoMapper.selectByPrimaryKey(userId);
	}
}
